<%@ Import Namespace="iPhOwa.Exchange" %>
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="NotesContent.ascx.cs"
	Inherits="iPhOwa.Web.Controls.NotesContent" %>
<asp:Panel ID="noMessagesPanel" runat="server" Visible="false" Style="text-align: center;">
	You have no notes.
</asp:Panel>
<asp:DataList ID="notesList" runat="server" EnableViewState="false" Width="100%"
	CellPadding="0" CellSpacing="0">
	<ItemTemplate>
		<iwc:ClickablePanel runat="server" ID="appointmentDiv" Href='<%# string.Concat("ViewNote.aspx?path=", HttpUtility.UrlEncode(Eval("Href").ToString())) %>'>
			<div style="padding: 2px; height: 16px;">
				<span style="float: left;">
					<asp:Image runat="server" ID="noteImage" CssClass="middle" ImageUrl="~/Images/icon-post.gif" />
					<asp:Label runat="server" ID="nameLabel" Text='<%# Eval("Subject") %>' />
				</span><span style="float: right;">
					<asp:Label runat="server" ID="startLabel" Text='<%# DateUtility.MakeFriendlyShortDate((DateTime)Eval("CreationDate")) %>'
						Style="white-space: nowrap;" />
				</span>
			</div>
		</iwc:ClickablePanel>
		<hr class="divider" />
	</ItemTemplate>
</asp:DataList>